package com.chinaisafe.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaisafe.module.user.request.SysRoleReqVO;
import com.chinaisafe.module.user.response.SysRoleRespVO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.chinaisafe.user.entity.SysRole;

/**
 * SysRoleMapper
 * Description：角色Mapper接口
 *
 * @author tby
 * @date 2024-07-11 17:32:41
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据条件获取角色分页列表
     *
     * @param page  分页对象
     * @param query 筛选参数
     * @return IPage<SysRoleRespVO> 查询结果
     * @author tby
     * @date 2024-07-11 17:32:41
     */
    IPage<SysRoleRespVO> getPageList(Page<SysRole> page, @Param("query") SysRoleReqVO query);
}
